/**
 * 
 */

package com.chengyu.eyc.service;

import java.util.Map;

/**
 * @author kevin
 *
 */
public interface WechatService {

    /**
     * 获取access_token
     * 
     * @param userId
     * @return
     */
    String getAccessToken(String userId);

    /**
     * @return
     */
    String getOfficialAccountAccessToken();

    /**
     * @param code
     * @return
     */
    Map<String, Object> getOpenId(String code);

    /**
     * 获取用户信息
     * @param openId
     * @return
     */
    Map<String, Object> getUserInfo(String accessToken,String openId);


    /**
     * @param userName
     * @param password
     * @return
     */
    boolean login(String userName, String password);

    /**
     * @param userId
     * @return
     */
    Map<String, Object> obtainVehicleLicenseInfo(Map<String, String> params);

}